// ALIBESteer.cpp file
#include <Arduino.h>
#include <Servo.h> 
#include <ALIBESteer.h>

	ALIBESteer::ALIBESteer(){
		//
	}
	
	//public
	void ALIBESteer::begin(){
		// attaches the servo on pin 	ALIBE_STEER_SERVO_PIN to the servo object 
		_steer.attach(ALIBE_STEER_SERVO_PIN);  
		turnStraight();
	}

	bool ALIBESteer::turnLeft(){
		_steer.write(0);             	// tell servo to go to position 0d - left
		delay(15);                       	// waits 15ms for the servo to reach the position 
		
	}
	bool ALIBESteer::turnRight(){
		_steer.write(180);             // tell servo to go to position 180d - right 
		delay(15);                       	// waits 15ms for the servo to reach the position 
		
	}
	bool ALIBESteer::turnStraight(){
		_steer.write(90);             // tell servo to go to position 90d - straight ahead 
		delay(15);                       	// waits 15ms for the servo to reach the position 
	}